package com.baitiaojun.bulletscreen.api;

import com.baitiaojun.api.exception.ConditionException;
import com.baitiaojun.api.vo.JsonRes;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;

/**
 * @类名 BulletScreenApi
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/1/1 17:08
 * @版本 1.0
 */
@Api("http弹幕接口")
@RequestMapping("/bullet-screen")
public interface BulletScreenApi {

    @ApiOperation("根据历史记录获取弹幕列表")
    @GetMapping("/bullet-screen-list")
    JsonRes getBulletScreenList(@ApiParam(value = "视频id", required = true) @RequestParam Long videoId,
                                @ApiParam("视频弹幕开始时间") String startTime, @ApiParam("视频弹幕结束时间") String endTime) throws ConditionException, ParseException;
}
